package com.dog.basics.bean.dto.admin.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @program: singingtogether
 * @description: key value Dto
 * @author: Guo
 * @create: 2019-12-21 11:31
 **/
@Data
public class NameDataDto {
    @NotBlank(message = "名称不能为空")
    @ApiModelProperty(value = "名称", dataType = "String", required = true)
    private String name;

    @NotBlank(message = "名称对应值不能为空")
    @ApiModelProperty(value = "名称对应值", dataType = "String", required = true)
    private String value;
}
